<?php 
require_once('../../libraryfiles/config.php');

require_once TMP_ADMIN_PATH;
?>
<div style="border:#921839 solid 2px; height:500px; min-width:900px; min-height:500px;">
<div style=" margin-left:350px; margin-top:40px;">
<h4> Change Background Image </h4>
<span style="color:#F00;">
  <?php 
      if(isset($_SESSION['mg_same'])){
		    echo $_SESSION['mg_same'];
			unset($_SESSION['mg_same']);
		  } 
	  if(isset($_SESSION['ms_invalid'])){
		    echo $_SESSION['ms_invalid'];
			unset($_SESSION['ms_invalid']);
		  
		  }
  ?>
</span>
<form action="function_upload.php" method="post"enctype="multipart/form-data">

<input class="input-xlarge" type="file" name="file" id="file" />

<input type="submit" name="submit"  class="btn btn-primary"value="Submit" />
</form>
    <div style="width:300px;">
    <?php 
	   $select="SELECT *FROM tbl_bg_image WHERE bg_status=1";
	   $run=mysql_query($select);
	   $assoc_sel=mysql_fetch_assoc($run);
	?>
       <table class="table table-bordered">
             <tr>
                 <th>ID</th>
                 <th>Image</th>
             </tr>
             <tr>
                <td>
                <?php echo $assoc_sel['bg_id'];?>
                </td>
                <td>
                 <?php echo $assoc_sel['bg_nam'];?>
                </td>
             </tr>
    </table>
    </div>
</div>
</div>
